<?php
namespace Amis\form;
class TreeSelect extends InputTree
{
    public string $type = 'tree-select';

    /**
     * 是否隐藏选择框中已选择节点的路径 label 信息
     * @param bool $hideNodePathLabel
     * @return $this
     */
    public function hideNodePathLabel(bool $hideNodePathLabel = false)
    {
        $this->hideNodePathLabel = $hideNodePathLabel;
        return $this;
    }

    /**
     * 只运行选择叶子节点
     * @param bool $onlyLeaf
     * @return $this
     */
    public function onlyLeaf(bool $onlyLeaf = false)
    {
        $this->onlyLeaf = $onlyLeaf;
        return $this;
    }
}